package com.umeng.soexample.di.modules;

import com.umeng.soexample.mvp.contract.CategoryFragmentContract;
import com.umeng.soexample.mvp.model.CategoryFragmentModel;

import dagger.Module;
import dagger.Provides;

@Module
public class CategoryFragmentModules {

    private CategoryFragmentContract.CategoryFragmentIView iView;

    public CategoryFragmentModules(CategoryFragmentContract.CategoryFragmentIView iView) {
        this.iView = iView;
    }

    @Provides
    public CategoryFragmentContract.CategoryFragmentIView providerIView(){
        return iView;
    }

    @Provides
    public CategoryFragmentContract.CategoryFragmentIModel providerIModel(){
        return new CategoryFragmentModel();
    }

}
